/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wordtree;

import java.util.Random;

/**
 *
 * @author Nicolas
 */
public class StrategyGenerator {

	public static int[] getOneStategy() {
		int[] stategy = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
		int x;
		long startTime = System.currentTimeMillis();
		Random r = new Random(startTime);
		for (int i = 0; i < 26; i++) {
			do {
				x = r.nextInt(26);
			} while (stategy[x] != -1);
			stategy[x] = i;
		}
		return stategy;
	}
	
	public static void main(String[] args) throws InterruptedException {
		int[] stategy;
		System.out.print("int[][] stategies = {");
		
		for (int j = 0; j < 100; j++) {
			stategy = StrategyGenerator.getOneStategy();
			System.out.print("{");
			for (int i = 0; i < 26; i++) {
				System.out.print(stategy[i]);
				if (i < 25) System.out.print(",");
			}
			System.out.print("}");
			if (j < 99) System.out.println(",");
			Thread.sleep(1000);
		}
		System.out.println("};");
		
	}
	
}
